package com.androidbook;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class Wall implements MechanicGame
{
	
	
	  public void draw(Canvas canvas,int[][] mapa, int p_x, int p_y,int x, int y,Bitmap _bitmap)
      {
      	
      	if ((p_x<MIN_X || p_x>MAX_X) || (p_y<MIN_Y || p_y>MAX_Y))	// w granicach mapy
      		canvas.drawBitmap(_bitmap, x,y, null);
      	else if ((mapa[p_x][p_y]==1))
      		canvas.drawBitmap(_bitmap, x,y, null);
      		//	}
      }
	  
}
